<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<base href="<%=basePath%>">
			<!--[if lte IE 6]></base><![endif]-->
		<title>广东科学技术职业学院考生报到系统后台登录</title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">

		<link href="css/login.css" rel="stylesheet" type="text/css" />
		<link rel="stylesheet" href="css/jquery-ui-1.8.5.custom.css"
			type="text/css" />
		<script type="text/javascript" src="js/jquery-1.5.js" charset="utf-8">
</script>
		<script type="text/javascript" src="js/jquery.bgiframe.js"
			charset="utf-8">
</script>
		<script type="text/javascript" src="js/cookie.js"
			charset="utf-8">
</script>
		<script type="text/javascript" src="js/login.js" charset="utf-8">
</script>
		<script src="js/jquery-ui-1.8.5.custom.min.js" language="javascript">
</script>

		<script type="text/javascript">
function reloadValidate() {
	$("#validateImage").attr("src",
			"generateValidateCode.action?" + Math.random());
}
$(function() {
	$("#validateCode").val("")
})

document.onkeydown=function(event) {
	event = event? event: window.event
 	 if (event.keyCode == 13) { 
 	 	$("#OKButton").trigger("click")
	 } 
}
</script>
<!--  用于判断浏览器版本，如是ie6以后将弹出警告-->
	<!--[if lte IE 6]>
	<script type="text/javascript">
		$(function(){
			var notRemindAgain=$.cookie("notRemindAgain")//不再提醒
			
			if(notRemindAgain==null){
				$("#version").html($.browser.version)
				$("#BrowerWarnning").show();
					$("#BrowerWarnning").dialog({
						modal: true,
						width:500,
						height:250,
						buttons:{
							'关闭浏览器':function(){
								window.close()
							},
							'忽略':function(){
								if($("#notRemindAgain").attr('checked')){
									$.cookie("notRemindAgain","true",{expires: 2});
								}
								$("#BrowerWarnning").dialog("close");
								$("#BrowerWarnning").hide();
							}
						}
				})
			}
		})
	</script>
	<![endif]-->
	
	</head>



<body style="overflow:hidden;">


		<form name="msgForm" action="login.action" method="post"
			id="loginForm">
			<div id="top">
				<div class="content">
					<div class="left">
						<table width="165" border="0" cellspacing="5" cellpadding="0">
							<tr>
								<td style="font-size: 18px; color: #ff7c12; text-align: center;">
									<div id="title">
										<div id="title2">
											二级学院
										</div>
									</div>
								</td>
							</tr>
							<tr>
								<td height="221">
									<table width="100%" height="223" border="0" cellpadding="0"
										cellspacing="5">
										<tr>
											<td width="40" height="150" valign="top">
												说明：
											</td>
											<td width="104" valign="top">
												<div id="explain">
													<div id="title3">
														二级学院说明
													</div>
												</div>
											</td>
										</tr>
									</table>
								</td>
							</tr>
							<tr>
								<td>
									<a href="javascript:void(0);" id="chooseDepartment" class="but">点击选择部门</a>
								</td>
							</tr>
						</table>


					</div>
					<div class="right">
						<table width="271" border="0" align="center" cellpadding="0"
							cellspacing="17" class="table">
							<tr>
								<td colspan="2" align="center" style="font-size: 22px;">
									<span id="l">二级学院</span>登录
									<font style="color: red;"><s:property
											value="%{getMassage('typeError')}" /> </font>
								</td>

							</tr>
							<tr id="chooseCollege">
								<td width="76" align="right">
									学院：
								</td>
								<td width="149">

									<select id="collegesList">
										<s:iterator value="colleges" id="college">
											<option value="<s:property value='#college.collegeId'/>">
												<s:property value="#college.collegesName" />
											</option>
										</s:iterator>
									</select>

								</td>
							</tr>
							<tr>
								<td align="right" width=60>
									用户名：
								</td>
								<td>
									<font style="color: red;" id="userNameError"></font>
									<input type="text" size="15" id="userName" />
								</td>

							</tr>
							<tr>
								<td align="right">
									密码：
								</td>
								<td>
									<font style="color: red;" id="passwordError"></font>
									<input type="password" size="15" id="password" />
								</td>

							</tr>
							<tr>
								<td align="right" valign=top>
									验证码：
								</td>
								<td>
									<font style="color: red;" id="validateCodeError"></font>
									<input name="validateCode" type="text" size="5"
										id="validateCode" />
									<font style="color: blue;">点击图片刷新</font>
									<img onclick="reloadValidate();"
										src="generateValidateCode.action?<%=Math.random()%>>"
										id="validateImage" />

								</td>

							</tr>
							<tr id="chooseRole">
								<td colspan="2" align="right">
									<input type="radio" name="role" id="foreAdmin"
										checked="checked" />
									操作员&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
									<input type="radio" name="role" id="Admin" />
									管理员&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
								</td>
							</tr>
							<tr>
								<!--<td colspan="2" align="center">
								<input type="checkbox" name="checkbox" id="checkbox" />
								记住密码&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;忘记密码？
							</td>-->
							</tr>
						</table>
						<div id="login">
							<a href="javascript:void(0);" onclick="login()" id="OKButton">登录</a>
							<input type="hidden" value="二级学院" id="userTypeName"
								name="userTypeName" />
							<!-- <input type="button" value="登录" onclick="login()" class="OKButton"/> -->
						</div>
					</div>
				</div>
			</div>


			<div id="BgDiv"></div>
			<div id="DialogDiv" style="display: none;">
				<h2>
					<a href="javascript:void(0);" class="btnClose">关闭</a>
				</h2>
				<div class="form">
				</div>
			</div>


		</form>
		<div id="BrowerWarnning" style="vertical-align: middle; display: none;color: red;font-size: 15px"
			title="浏览器版本过低!!">
			你当前使用的浏览器版本为IE&nbsp;<span id="version"></span>版本较低！
			<br />
			建议您使用其他浏览器(火狐，谷歌，IE7，IE8 ，IE9，Safari等)
			<p style="text-align: center"><a href="http://www.google.com/chrome/index.html"  target="_blank">点击下载谷歌浏览器</a></p>
			<p style="text-align: center"><a href="http://www.firefox.com.cn/download/"  target="_blank">点击下载火狐浏览器</a></p>
			<p align="right">
				<input type="checkbox" id="notRemindAgain"/> 不再提醒
			</p>
		</div>

	</body>


</html>
